<?php
/*
 * 导购列表页
 * @package    auto
 * @author     Mark
 * @copyright  Copyright (c) 2013 ixdcw team
 * @version    $Id: 10be5302449f5baf71c940f1fe59b243a4b62b4f $
 */
defined('IN_IXDCW') or exit('Access Denied');
require DT_CORE . '/' . $module . '/common.inc.php';

$headerPart = 'guide';
require_once MD_ROOT . '/header.inc.php';

$pn = new Pagination();

$guideCategory = AutoGuide::category();


$table     = Table::name(Table::NAME_GUIDE);
$pagesize  = 3;

$condition = " arcid=$carid";
if (isset($catid) && $catid != 0) $condition .= " and catid=$catid";



$items = $db->count(Table::name(Table::NAME_GUIDE), $condition);

$pn->records($items);
$pn->padding(false);
$pn->recordsPerPage($pagesize);

$limitSql .= " LIMIT " . ($pn->getPage() - 1) * $pagesize . ',' . $pagesize;
$sql = "select itemid,title,introduce,thumb,addtime,linkurl from $table where $condition $limitSql";
$gulidSummary = $db->getAll($sql);

include template('guideList', $module);













